﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using IBatisNet.DataMapper;
using IBatisNet.DataMapper.Configuration;

namespace DbService
{
    public class InitSqlMap
    {
        //初始化 SqlMap对象
        public ISqlMapper SqlMap = null;

        public InitSqlMap()
        {
            if (SqlMap== null)
            {
                DomSqlMapBuilder builder = new DomSqlMapBuilder();
                SqlMap = builder.Configure("DBConfig/SqlMap.config");
            }
        }
    }
}